#pragma once
#include "TypeBase.h"
#include "List.h"

template<class _Type>
class Queue : public List<_Type>
{
public:
	void Insert(_Type Temp)
	{
		Add(Temp);
	}

	_Type Quit()
	{
		_Type Result = Data[0];
		Delete(0);
		return Result;
	}

	BOOL IsEmpty()
	{
		return Size() == 0;
	}
};